Automattic\WooCommerce\GoogleListingsAndAds\Coupon\CouponHelper S

Total Complexity 43
Dependencies 10
Dependents 7
Total lines 410
Lines of code 168
Logical lines of code 72
Comment lines 183
Methods 23
Properties 3

Methods 23

Method Rating Maintainability Complexity Lines of code
get_validation_errors()
S
65 4 8
remove_google_id_by_country()
S
62 3 12
mark_as_synced()
S
58 2 16
get_channel_visibility()
S
60 2 16
is_sync_ready()
S
70 3 6
get_mc_status()
S
60 2 15
has_notified_creation()
S
62 2 13
is_sync_failed_recently()
S
65 2 9
should_trigger_update_notification()
S
79 2 3
should_trigger_create_notification()
S
78 2 3
is_ready_to_notify()
S
74 2 4
should_trigger_delete_notification()
S
78 2 3
is_coupon_synced()
S
72 2 5
get_wc_coupon()
S
69 2 7
update_empty_visibility()
S
67 2 9
mark_as_invalid()
S
67 2 8
mark_as_notified()
S
73 1 5
get_sync_status()
S
80 1 3
get_synced_google_ids()
S
80 1 3
mark_as_pending()
S
76 1 4
set_notification_status()
S
80 1 3
mark_as_unsynced()
S
68 1 8
__construct()
S
74 1 5